import {
	createSSRApp
} from "vue";
import App from "./App.vue";
import * as Pinia from 'pinia'
import { createUnistorage } from 'pinia-plugin-unistorage'
import "@/style/base.css";
import share from '@/utils/share.js' // 引入share.js
export function createApp() {
	const app = createSSRApp(App);
	app.mixin(share) // 使用mixin全局混入
	const store = Pinia.createPinia()
	store.use(createUnistorage())
	app.use(store)
	return {
		app,
		Pinia
	};
}
